<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title>银行规则</title>
</head>
<body>
<div class="contant">
<div class="row">
       <!-- <div class="top">系统管理>银行规则</div>-->
        <div class="content applylist">
            <div class="box">
                <h1>银行规则列表</h1>
                <div class="list-block">
                    <div class="row">
                        <a href="{:U('Bankrule/add')}"><button class="addcus"><span></span>添加规则</button></a>
                        <form id="form-search" action='{:U("Bankrule/index")}' class="form-inline text-right ">
                        <div class="form-group" style="margin-top: 15px;">
                            <label>贷款银行</label>
                            <select name="bank_id" class="myCss" style="float: left">
                                <option value="">不限</option>
                                <foreach name="bankList" item="val">
                                    <if condition="($_GET['bank_id'] == $val['id'])">
                                        <option value={$val.id} selected>{$val.bank_short_name}</option>
                                    <else />
                                        <option value={$val.id}>{$val.bank_short_name}</option>
                                    </if>
                                </foreach>
                            </select>

                            <label>车型构成</label>
                            <select name="car_model" class="myCss" style="float: left">
                                <option value="">不限</option>
                                <foreach name="carModelItems" item="val">
                                    <if condition="($_GET['car_model'] == $key)">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                </foreach>
                            </select>

                            <label>是否省外</label>
                            <select name="is_province" class="myCss" style="float: left">
                                <option value="">不限</option>
                                <option value=1 <if condition="($_GET['is_province'] == 1)">selected</if>>省内</option>
                                <option value=0 <if condition="($_GET['is_province'] == 0)">selected</if>>省外</option>
                            </select>

                            <label>年限</label>
                            <select name="year_limit" class="myCss" style="float: left">
                                <option value="">不限</option>
                                <foreach name="yearLimitItems" item="val">
                                    <if condition="($_GET['year_limit'] == $val)">
                                        <option value={$val} selected>{$key}</option>
                                    <else />
                                        <option value={$val}>{$key}</option>
                                    </if>
                                </foreach>
                            </select>
                        </div>
                        <button class="btn btn-primary" type="submit" style="margin-top: 13px;">查询</button>
                        </form>
                    </div>
                    <div class="row">
                        <table class="list">
                            <tr>
                                <th>ID</th> <th>费率</th> <th>银行</th> <th>车型构成</th> <th>是否省外</th> <th>年限</th><th>操作</th>
                            </tr>
                            <volist name="list" id="_br">
                                <tr>
                                    <td>{$_br.id}</td>
                                    <td>{$_br.rate}</td>
                                    <td>{$_br.bank_name}</td>
                                    <td>
                                    <switch name="_br.car_model">
                                        <case value="0">新车</case>
                                        <case value="1">二手车</case>
                                        <case value="2">存量车</case>
                                        <case value="3">商用车</case>
                                        <default />default
                                    </switch>
                                    </td>
                                    <td>
                                        <switch name="_br.is_province">
                                        <case value="0">省外</case>
                                        <case value="1">省内</case>
                                        <default />default
                                        </switch>
                                    </td>
                                    <td>
                                    {$_br.}
                                        <switch name="_br.year_limit">
                                        <case value="12">一年</case>
                                        <case value="24">二年</case>
                                        <case value="36">三年</case>
                                        <case value="48">四年</case>
                                        <case value="60">五年</case>
                                        <default />default
                                        </switch>
                                    </td>
                                    <td><!-- <a href="{:U('Bankrule/detail')}">查看</a> -->&nbsp;&nbsp;<a href="{:U('Bankrule/edit?id='.$_br['id'])}">编辑</a></td>
                                </tr>
                            </volist>
                        </table>
                    </div>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>